package com.totoro.springcloud.hystrix_message;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
//@EnableHystrix 使用 @EnableCircuitBreaker 或@EnableHystrix开启Hystrix的使用
public class HystrixMessageApplication {

    public static void main(String[] args) {
        SpringApplication.run(HystrixMessageApplication.class, args);
    }
}
